package com.cropdoctor.service;

import com.cropdoctor.common.Result;
import com.cropdoctor.model.dto.SingleVegeFruDetailDto;
import com.cropdoctor.model.dto.VegeFruGardenDto;
import com.cropdoctor.model.po.RemindPo;
import com.cropdoctor.model.vo.VegeFruGardenVO;

import java.io.IOException;
import java.time.LocalDate;
import java.util.List;


public interface VegeFruGardenService {

    Result<VegeFruGardenDto> addUserVegAndFruGarden(Long idItself,String name) throws IOException;

    Result<String> deleteByGardenId(Long id);

    Result<List<VegeFruGardenDto>> getAll(Long id);

    Result<SingleVegeFruDetailDto> getSingle(Long id, int userId);

    Result<String> changeRemindList(RemindPo remindPo);

    Result<RemindPo> getRemind(int idGarden, LocalDate date);
}
